package com.example.myrecycyleview528zyr.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.example.myrecycyleview528zyr.R;

/**
 * Created by jone on 2017/5/23.
 */
public class ArticleFragment2 extends Fragment {
    private TextView tvinfo;
    private View view = null;
    private Context context;

    //    private static int cur_page=1;
//    private static int lastVisibleItemPosition;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        view = inflater.inflate(R.layout.articlefragment1, container, false);
        context = getActivity();
        tvinfo = (TextView) view.findViewById(R.id.textView6);
        tvinfo.setText("朋友");
        Toast.makeText(context, "加载fragment朋友", Toast.LENGTH_SHORT).show();

        return view;
    }
}


